﻿using System;
using System.Collections.Generic;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Aside : HtmlElement
	{
		public Aside() : base(AsideDescription.Instance) { }
	}
	public class AsideDescription : HtmlElementDescription
	{
		public static readonly AsideDescription Instance = new AsideDescription();
		private AsideDescription() : base("aside", HtmlVersion.Html5) { }
		public override Type ControlType { get { return typeof(Aside); } }
		public override bool IsFlowElement { get { return true; } }
		public override bool OnlyFlowContent { get { return true; } }
		public override IEnumerable<HtmlElementDescription> PermittedElements { get { yield return StyleDescription.Instance; } }
		public override string Description { get { return "content that is tangentially related to the content that forms the main textual flow of a document."; } }
	}
}
